package com.ltt.common;

import com.ltt.dao.vo.UserVo;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/1 15:14
 */
public class UserThreadLocal {
    public static final ThreadLocal<UserVo> LOCAL = new ThreadLocal<>();

    public static void put(UserVo userVo) {
        LOCAL.set(userVo);
    }

    public static UserVo get() {
        return LOCAL.get();
    }

    public static void remove() {
        LOCAL.remove();
    }
}
